package lab9;

public class CarTest {

	
	public static void main(String[] args) {
		Person pesho = new Person("Pesho", 20, 100, 100, 100);
		Car peshosCar = new Car("BMW", 200, 100, "Black", (byte)4, pesho);
		System.out.println(peshosCar.toString());
		peshosCar.shiftGearUp();
		peshosCar.shiftGearUp();
		System.out.println(peshosCar.toString());
		peshosCar.shiftGearUp();
		System.out.println(peshosCar.toString());
		Car gosho = new Car("Trabant", 50, 20, "Yellow", (byte)0, pesho);
		System.out.println(gosho.toString());
		for (int i = 0; i < 3; i++) gosho.shiftGearDown();
		System.out.println(gosho.toString());
		System.out.println(peshosCar.getOwner().getName() + " " + peshosCar.getOwner().getAge());
	}
}
